<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<link href="__PUBLIC__/dwz/themes/default/style.css" rel="stylesheet" type="text/css" media="screen"/>
<link href="__PUBLIC__/dwz/themes/css/core.css" rel="stylesheet" type="text/css" media="screen"/>
<link href="__PUBLIC__/dwz/themes/css/print.css" rel="stylesheet" type="text/css" media="print"/>
<link href="__PUBLIC__/dwz/uploadify/css/uploadify.css" rel="stylesheet" type="text/css" media="screen"/>
<!--[if IE]>
<link href="__PUBLIC__/dwz/themes/css/ieHack.css" rel="stylesheet" type="text/css" media="screen"/>
<![endif]-->
<!--
<script type="text/javascript" src="__PUBLIC__/ueditor/editor_config.js"></script>
<script type="text/javascript" src="__PUBLIC__/ueditor/editor_all.js"></script>
<link rel="stylesheet" href="__PUBLIC__/ueditor/themes/default/ueditor.css"/>
-->
<script src="__PUBLIC__/js/jquery/jquery-1.7.2.min.js" type="text/javascript"></script>
<script src="__PUBLIC__/js/jquery/jquery.cookie.js" type="text/javascript"></script>
<script src="__PUBLIC__/js/jquery/jquery.validate.js" type="text/javascript"></script>
<script src="__PUBLIC__/js/jquery/jquery.bgiframe.js" type="text/javascript"></script>
<script src="__PUBLIC__/dwz/xheditor/xheditor-1.1.12-zh-cn.min.js" type="text/javascript"></script>
<script src="__PUBLIC__/dwz/uploadify/scripts/swfobject.js" type="text/javascript"></script>
<script src="__PUBLIC__/dwz/uploadify/scripts/jquery.uploadify.v2.1.0.js" type="text/javascript"></script>

<script src="__PUBLIC__/dwz/js/dwz.min.js" type="text/javascript"></script>
<script src="__PUBLIC__/dwz/js/dwz.regional.zh.js" type="text/javascript"></script>

<script type="text/javascript">
$(function(){
	DWZ.init("__PUBLIC__/dwz/dwz.frag.xml", {
		loginUrl:'__APP__/Login/', loginTitle:"登录",	// 弹出登录对话框
//		loginUrl:"login.html",	// 跳到登录页面
		statusCode:{ok:200, error:300, timeout:301}, //【可选】
		pageInfo:{pageNum:"pageNum", numPerPage:"numPerPage", orderField:"orderField", orderDirection:"orderDirection"}, //【可选】
		debug:false,	// 调试模式 【true|false】
		callback:function(){
			initEnv();
			$("#themeList").theme({themeBase:"__PUBLIC__/dwz/themes"}); // themeBase 相对于index页面的主题base路径
		}
	});
});
</script>
</head>

<body scroll="no">
	<div id="layout">
		<div id="header">
			<div class="headerNav">
				<div style="letter-spacing: 10px;color: #B9CCDA;font-family: 黑体;font-size: 16px;height: 50px;line-height: 50px;text-align: left;text-indent: 20px;">AUTOKAA后台管理系统</div>
				<ul class="nav">
					<li><a href="__APP__/Login/config/" target="dialog" width="500" height="350">当前用户：{$Think.session.username}</a></li>
					<li><a href="javascript:;" onclick="logout();">退出</a></li>
				</ul>
			</div>
		</div>
		<div id="leftside">
			<div id="sidebar_s">
				<div class="collapse">
					<div class="toggleCollapse"><div></div></div>
				</div>
			</div>
			<div id="sidebar">
				<div class="toggleCollapse"><h2>主菜单</h2><div>收缩</div></div>

				<div class="accordion" fillSpace="sidebar">
					
					
				</div>
			</div>
		</div>
		<div id="container">
			<div id="navTab" class="tabsPage">
				<div class="tabsPageHeader">
					<div class="tabsPageHeaderContent"><!-- 显示左右控制时添加 class="tabsPageHeaderMargin" -->
						<ul class="navTab-tab">
							<li tabid="main" class="main"><a href="javascript:;"><span><span class="home_icon">系统主页</span></span></a></li>
						</ul>
					</div>
					<div class="tabsLeft">left</div><!-- 禁用只需要添加一个样式 class="tabsLeft tabsLeftDisabled" -->
					<div class="tabsRight">right</div><!-- 禁用只需要添加一个样式 class="tabsRight tabsRightDisabled" -->
					<div class="tabsMore">more</div>
				</div>
				<ul class="tabsMoreList">
					<li><a href="javascript:;">系统主页</a></li>
				</ul>
				<div class="navTab-panel tabsPageContent layoutBox">
				<div class="page unitBox">
							<div style="padding:5px;background:#fff;" layoutH="10">
								<div style="margin-top:5px;*padding-top:5px;overflow:hidden;">
									<div class="panel" defH="150" style="width:400px;float:left;">
										<h1>我的信息</h1>
										<div class="pageContent" style="background:#fff;">
											<div style="padding:5px;">您好：{$Think.session.username}</div>
											<div class="divider">divider</div>
											<div style="padding:5px;">所属项目组：{$Think.session.rolename}</div>
											<div class="divider">divider</div>
										</div>
									</div>
									<div class="panel" defH="145" style="margin-left:5px;width:400px;float:left;">
										<h1>在线用户</h1>
										<div id="online_user" style="background:#fff;word-spacing:12px;line-height:25px;padding:5px;">
										</div>
									</div>
								</div>
								<div style="clear:all;"></div>
								<div style="margin-top:5px;overflow:hidden;">
									<div class="panel" defH="150" style="width:400px;float:left;">
										<h1>系统信息</h1>
										<div class="pageContent" style="background:#fff;">
											<div style="padding:5px;">程序版本：{$Think.config.AUTOKAA_VERSION}</div>
											<div style="padding:5px;">服务器软件：</div>
											<div style="padding:5px;">MySQL 版本：</div>
										</div>
									</div>
									<div class="panel" defH="150" style="margin-left:5px;width:400px;float:left;">
										<h1>系统开发及维护团队</h1>
										<div class="pageContent" style="background:#fff;">
											<div style="padding:5px;">版权所有：{$Think.config.COMPANY_NAME}</div>
											<div style="padding:5px;">开发与支持团队：{$Think.config.COMPANY_PEOPLE}</div>
										</div>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	<div id="footer">{$Think.config.COMPANY_NUM}</div>
<script type="text/javascript">
function logout(){
	alertMsg.confirm("您确定要退出么！", {
		okCall: function(){
			$.ajax({
				url: '__APP__/Login/loginout/',
				type: 'POST',
				dataType: 'json',
				cache: false,
				beforeSend: function(){
				},
				success: function(json){
					if(json.statusCode=='200'){
						location.href='__APP__/Login/';
					}else{
						alertMsg.info("退出失败，请重试!");
					}
				},
				error:function(XMLHttpRequest, textStatus, errorThrown){
					alertMsg.info('网络错误!');
				},
				complete:function(){
				}
			});
		}
	});
}
function closeDialogSearch(obj){
	var flag = navTabSearch(obj);
	$.pdialog.closeCurrent();
	return flag;
}
function clearForm(){
	navTab.reload();
	$.pdialog.closeCurrent();
}

function refreshOlineUser(){
	$.ajax({
		url: '',
		type: 'POST',
		dataType: 'json',
		cache: false,
		global: false,
		beforeSend: function(){
		},
		success: function(json){
			if(json.users){
				var users = json.users;
				var str = '';
				for(var i in users){
					str += '<span title="'+users[i].username+'">'+users[i].realname+"</span>\r\n";
				}
				$('#online_user').empty().append(str);
			}
		},
		error:function(XMLHttpRequest, textStatus, errorThrown){
			//alertMsg.error('网络错误!');
		},
		complete:function(){
		}
	});
}
$(document).ready(function(){
	refreshOlineUser();
	setInterval("refreshOlineUser()",10000);
});
</script>
</body>
</html>